package com.karlis.common;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.karlis.user.bo.UserBo;
import com.karlis.user.model.User;

public class App {
	public static void main(String[] args) {
		ApplicationContext appContext = 
		    	  new ClassPathXmlApplicationContext("spring/config/BeanLocations.xml");
		
		UserBo userBo = (UserBo)appContext.getBean("userBo");
		
		User user = new User();
    	user.setPassword("456");
    	user.setUsername("Project2");
    	userBo.save(user);
	}

}
